package com.cloud.logger.zchain.zchainserver.mongo;


import com.cloud.logger.zchain.zchainserver.entity.AngelaLoggerProject;
import org.springframework.data.domain.Sort;

import java.io.Serializable;
import java.util.List;

/**
 * User: wcy
 * Date: 2017/11/2
 * Time: 11:29
 */
public interface AngelaProjectRepository extends BaseMongoRepository<AngelaLoggerProject,Serializable> {

    List<AngelaLoggerProject> findByParentNode(String parentNode, Sort sort);

    List<AngelaLoggerProject> findByParentNodeNot(String i);

    AngelaLoggerProject findOneByCode(String code);

    AngelaLoggerProject findOneByCodeAndIdNot(String code, String id);
}
